<%@page pageEncoding="utf-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>

<html>

<head>
  <title>悪魔マスタ新規登録</title>
</head>

<body>
<h1>悪魔マスタ新規登録</h1>

<%-- 登録フォーム --%>
<s:form action="devilMaster" method="post">
  <s:textfield name="devil.id" label="ID"/>
  <s:select list="devilTypes" listKey="id" listValue="name"
            name="devil.devilType.id" label="種族"/>
  <s:textfield name="devil.name" label="名称"/>
  <s:textfield name="devil.hp" label="HP"/>
  <s:textfield name="devil.tsuyosa" label="強さ"/>
  <s:textfield name="devil.chiryoku" label="知力"/>
  <s:textfield name="devil.kougeki" label="攻撃"/>
  <s:textfield name="devil.kibin" label="機敏"/>
  <s:textfield name="devil.bougyo" label="防御"/>
  <s:textfield name="devil.exp" label="経験値"/>
  <s:textfield name="devil.makka" label="魔ッ貨"/>
  <s:textfield name="devil.mag" label="マグネタイト"/>
  <s:submit method="create" value="登録"/>
</s:form>

<a href="<s:url action="devilMaster" method="searchInit"/>">検索画面</a>
</body>

</html>
